<?php

?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css">
		<script type="text/javascript" src="../js/jquery-3.1.1.js"></script>
		<script type="text/javascript" src="../js/bootstrap.min.js"></script>
		<script type="text/javascript" src="../js/jquery.jeditable.js" ></script>
		<script type="text/javascript">
$(function(){
	 $('.edit').editable('save.php', { 
		 width     :120,
		 height    :18,
		 //onblur    : "ignore",
         cancel    : '取消',
         submit    : '确定',
         indicator : '<img src="../css/loader.gif">',
         tooltip   : '单击可以编辑...',
		 callback  : function(value, settings) {
			 $("#modifiedtime").html("刚刚");
         }

  });
});
</script>
	</head>
<body>
<?php
	session_start();
	if(isset($_SESSION['username'])){
?>
	<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<ul class="nav nav-tabs" style="padding: 2%;">
<?php
	if($_SESSION['role']>='1'){
?>
				<li>
					<a href="#" data-toggle="dropdown" class="dropdown-toggle">查看信息<strong class="caret"></strong></a>
					<ul class="dropdown-menu">
						<li>
							 <a href="../ck/ckbks.php">本科生</a>
						</li>
						<li>
							 <a href="../ck/ckyjs.php">研究生</a>
						</li>
						<li>
							 <a href="../ck/ckbss.php">博士生</a>
						</li>
					</ul>
				</li>
<?php
	}
?>
<?php
	if($_SESSION['role']>='2'){
?>
				<li>
					<a href="#" data-toggle="dropdown" class="dropdown-toggle">预修改信息<strong class="caret"></strong></a>
					<ul class="dropdown-menu">
						<li>
							 <a href="../yxg/yxgbks.php">本科生</a>
						</li>
						<li>
							 <a href="../yxg/yxgyjs.php">研究生</a>
						</li>
						<li>
							 <a href="../yxg/yxgbss.php">博士生</a>
						</li>
					</ul>
				</li>
<?php
	}
?>
<?php
	if($_SESSION['role']>='3'){
?>
				<li>
					<a href="#" data-toggle="dropdown" class="dropdown-toggle">预修改信息审核<strong class="caret"></strong></a>
					<ul class="dropdown-menu">
						<li>
							 <a href="../check/checkbks.php">本科生</a>
						</li>
						<li>
							 <a href="../check/checkyjs.php">研究生</a>
						</li>
						<li>
							 <a href="../check/checkbss.php">博士生</a>
						</li>
					</ul>
				</li>
<?}
if($_SESSION['role']>='4'){
?>
				<li>
					<a href="#" data-toggle="dropdown" class="dropdown-toggle">直接修改信息<strong class="caret"></strong></a>
					<ul class="dropdown-menu">
						<li>
							 <a href="xgbks.php">本科生</a>
						</li>
						<li>
							 <a href="xgyjs.php">研究生</a>
						</li>
						<li>
							 <a href="xgbss.php">博士生</a>
						</li>
					</ul>
				</li>
<?php
	}
?>
				<li class="dropdown pull-right">
					 <a href="#" data-toggle="dropdown" class="dropdown-toggle">用户<strong class="caret"></strong></a>
					<ul class="dropdown-menu">
						<li>
							 <a href="#">更改密码</a>
						</li>
						<li class="divider">
						</li>
						<li>
							 <a href="../logout.php">注销</a>
						</li>
					</ul>
				</li>
			</ul>
			<ul class="breadcrumb">
				<li>
					 直接修改信息
				</li>
				<li class="active">
					博士生
				</li>
			</ul>
			<table class="table table-hover">
				<thead>
					<tr>
						<th><font color=black>学号</font></th>
						<th><font color=black>姓名</font></th>
						<th><font color=black>高中学籍材料</font></th>
						<th><font color=black>高考报名登记表</font></th>
						<th><font color=black>大学生登记表</font></th>
						<th><font color=black>大学毕业生登记表</font></th>
						<th><font color=black>大学历年成绩表</font></th>
						<th><font color=black>学士学位审批材料</font></th>
						<th><font color=black>硕士录取登记表</font></th>
						<th><font color=black>硕士研究生登记表</font></th>
						<th><font color=black>硕士学位审批材料</font></th>
						<th><font color=black>硕士成绩单</font></th>
						<th><font color=black>博士录取登记表</font></th>
						<th><font color=black>专家推荐信及其它</font></th>
						<th><font color=black>教师资格认定申请表</font></th>
						<th><font color=black>工作期间形成的材料</font></th>
						<th><font color=black>入学前其他阶段派遣证</font></th>
						<th><font color=black>入团志愿书</font></th>
						<th><font color=black>入党志愿书</font></th>
						<th><font color=black>入党申请书</font></th>
						<th><font color=black>入党其它材料</font></th>
						<th><font color=black>其它材料</font></th>
						<th><font color=black>备注</font></th>
					</tr>
				</thead>
	<tbody>
<?php 	
	include_once("../conn.php");
	$result = mysql_query("SELECT * FROM phd");
	while($row = mysql_fetch_array($result))
		{?>
	<tr>
		<td><font color=black><?=$row['xh'] ?></font></td>
		<td style="width: 60px"><font color=black><?=$row['xm'] ?></td>
		<td class="edit" id="gzxj<?=$row['xh']?>"><?=$row['gzxj'] ?></td>
		<td class="edit" id="gkbm<?=$row['xh']?>"><?=$row['gkbm'] ?></td>
		<td class="edit" id="dxsdjb<?=$row['xh']?>"><?=$row['dxsdjb'] ?></td>
		<td class="edit" id="dxbydjb<?=$row['xh']?>"><?=$row['dxbydjb'] ?></td>
		<td class="edit" id="bkcj<?=$row['xh']?>"><?=$row['bkcj'] ?></td>
		<td class="edit" id="bkxwsp<?=$row['xh']?>"><?=$row['bkxwsp'] ?></td>
		<td class="edit" id="sslq<?=$row['xh']?>"><?=$row['sslq'] ?></td>
		<td class="edit" id="ssdjb<?=$row['xh']?>"><?=$row['ssdjb'] ?></td>
		<td class="edit" id="ssbydjb<?=$row['xh']?>"><?=$row['ssbydjb'] ?></td>
		<td class="edit" id="ssxwsp<?=$row['xh']?>"><?=$row['ssxwsp'] ?></td>
		<td class="edit" id="sscj<?=$row['xh']?>"><?=$row['sscj'] ?></td>
		<td class="edit" id="bslq<?=$row['xh']?>"><?=$row['bslq'] ?></td>
		<td class="edit" id="tjx<?=$row['xh']?>"><?=$row['tjx'] ?></td>
		<td class="edit" id="jszgrdb<?=$row['xh']?>"><?=$row['jszgrdb'] ?></td>
		<td class="edit" id="gzcl<?=$row['xh']?>"><?=$row['gzcl'] ?></td>
		<td class="edit" id="pqz<?=$row['xh']?>"><?=$row['pqz'] ?></td>
		<td class="edit" id="rtzys<?=$row['xh']?>"><?=$row['rtzys'] ?></td>
		<td class="edit" id="rdzys<?=$row['xh']?>"><?=$row['rdzys'] ?></td>
		<td class="edit" id="rdsqs<?=$row['xh']?>"><?=$row['rdsqs'] ?></td>
		<td class="edit" id="rdqtcl<?=$row['xh']?>"><?=$row['rdqtcl'] ?></td>
		<td class="edit" id="qtcl<?=$row['xh']?>"><?=$row['qtcl'] ?></td>
		<td class="edit" id="bz<?=$row['xh']?>"><?=$row['bz'] ?></td>
	</tr>
	<?}?>		
		</tbody>
		</table>
		</div>
	</div>
</div>
<?php }else{?>
<script>
	alert("请登录");
	window.location.href = 'login.html';
</script>
<?}?>
</body>
</html>
